package com.jddai.controller;

import com.jddai.service.BRBService;
import com.jddai.tool.UtilMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.io.IOException;
import java.util.List;

@Controller
@RequestMapping("/BRB_back")
public class BRBController {

    /*@Autowired
    UtilMapper utilMapper;

    @CrossOrigin
    @GetMapping("/util123")
    public void util(){
        List<Double> list = utilMapper.getY2();
        for(int i=0; i<list.size();i++){
            utilMapper.updateY2(list.get(i),i+1);
        }
    }*/

    @Autowired
    BRBService brbService;

    @GetMapping("/testTemp")
    public void testTemp() throws IOException {
        brbService.getModel();
    }



}
